<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="../static/easyui/jquery.min.js"></script>
<script type="text/javascript" src="../static/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../static/easyui/locale/easyui-lang-zh_CN.js"></script>
<link rel="stylesheet" href="../static/easyui/themes/icon.css">
<link rel="stylesheet" href="../static/easyui/themes/metro-orange/easyui.css">


<style type="text/css">
    
</style>
<script type="text/javascript">

</script>
</head>
<body>
  <script type="text/javascript">
		$(function(){
			//初始化表格
			$('#zzshenhe_biao').datagrid({
			    url:'zuizhong_shenhe',
			    columns:[[
					{field:'RSENAME',width:1,title:'应聘人姓名',align:'center'},
					{field:'POTZW',width:1,title:'应聘职位',align:'center'},
					{field:'TRTSFENS',width:1,title:'笔试成绩',align:'center'},
					{field:'IRWREM',width:1,title:'面试备注',align:'center'},
					{field:'RCDSTAT',width:1,title:'审核情况',align:'center',
						formatter:function(value){
							if(value==""){
								return "未审核"
							}else if(value=="1"){
								return "审核合格"
							}else if(value=="2"){
								return "审核不合格"
							}else{
								return "错误状态"
							}							
						}
					},
					{field:'caozuo',width:1,title:'操作',align:'center',
						formatter:function(value,row,index){
							if(row["RCDSTAT"]==""){
								return "<input type='button'class='zuizhong_shann shann_hege' onclick='zzshenhetg()' value='通过，送审'>"
							}else if(row["RCDSTAT"]=="1"){
								return "已完成审核"
							}else if(row["RCDSTAT"]=="2"){
								return "已审核，未通过"
							}else{
								return "错误操作"
							}
						}
					}
			    ]],
			   /*  toolbar:'#zzshenhe_biao', */
			    pagination:true,
			    pageNumber:1,
			    pageSize:5,
			    pageList:[5,10,15]
			});
		});
		//最终审核通过
		function zzshenhetg(){
			var rows=$("#zzshenhe_biao").datagrid("getChecked");
			alert(rows[0].RCDID);
			$.ajax({
				type:"post",
				url:"zzshenhe_tongguo",
				data:{zuizhong_shenhe:rows[0].RCDID},
				success:function(){
					$("#zzshenhe_biao").datagrid();
				}
			});
		}
		function zzshenhebutg(){
			var rows=$("#zzshenhe_biao").datagrid("getChecked");
			alert(rows[0].RCDID);
			$.ajax({
				type:"post",
				url:"zzshenhe_butongguo",
				data:{zuizhong_shenhebtg:rows[0].RCDID},
				success:function(){
					$("#zzshenhe_biao").datagrid();
				}
			});
		} 
   </script>
<div class="full_scr bj_home">
	<div class="bj_img" style="background-image:${hopa.perPmsZts[0].ztback}"></div>
	<div class="bj_txt">
		<div class="bj_small bj_s_w7">
		   <div class="apply_box">
		      <div class="topbox">
		          <div class="sousuobox">
		             <input type="text" class="sousuokuang">
		             <input type="button" value="搜索" class="sousuoan">
		             <!-- <input type="button" value="查看已通过的申请"  class="ytgshenqing"> -->
		          </div>
		      </div>
		      <div class="biaobox">
		         <table id="zzshenhe_biao" class="easyui-datagrid"style="width:calc(100% - 10px);height:400px;"data-options="fitColumns:true,singleSelect: true">
		         </table>
		      </div>
		   </div>
		</div>
	</div>
</div>   
</body>
</html>